+2005-12-17 Michael Schumacher <schumaml@cvs.gnome.org>
+
+ * extensions/Makefile.in: add libgw32 and its dependencies to
+ LDADD for the win32 platform
+
2005-11-10 Øyvind Kolås <pippin@gimp.org>
* docs/index-static.html.in: Minor reformulations and spelling fixes.
# General minimalistic compile file for self contained single
# file babl_extensions
+@OS_WIN32_TRUE@win32_libs = -lgw32c -liberty -lole32 -luuid -lwsock32
+@OS_WIN32_TRUE@no_undefined = -no-undefined
+
CC = @CC@
CFILES = $(wildcard *.c)
CFLAGS += -Wall
%.so: %.c
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $<
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD)
# if extension needing external libraries are to be # compiled with this make
# file, each of them can be added according to the this pattern:
# $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< [own compile and link flags]
CIE-Lab.so: CIE-Lab.c
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< -lm
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD) -lm
lcms.so: lcms.c
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< `pkg-config lcms --cflags --libs`
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LDADD) `pkg-config lcms --cflags --libs`
#############################################################################
-LDFLAGS = -shared -lc
+LDFLAGS += -shared
+
+LDADD = ../babl/.libs/libbabl.a $(win32_libs) $(no-undefined)
CFLAGS += -I../babl